#include<iostream>
#include<thread>

void foo005() {
	std::cout << "Thread started" << std::endl;
}

int main005() {
	std::thread t(foo005);
	if (t.joinable()) {
		t.join();
	}
	std::cout << "Thread joined" << std::endl;


	return 0;
}